package com.xinqi.modules.chat.chat.chat.mapper;

import com.xinqi.common.mybatis.data.repo.SuperMapper;
import com.xinqi.modules.chat.chat.chat.domain.ChatTranRecordEntity;
import com.xinqi.modules.chat.chat.group.dto.rsp.ChatTranRecordResultDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 数据层
 *
 * @author: yyzhen
 * @date: 2023/03/29
 */
@Mapper
public interface ChatTranRecordMapper extends SuperMapper<ChatTranRecordEntity> {

    /**
     * 查询用户最近的转发会话列表(会话单一，默认六条)
     *
     * @param userId
     * @return
     */
    List<ChatTranRecordResultDTO> recentChatTranRecordList(@Param("userId") Long userId);
}
